﻿/************************************************************************/
/* FileName:        SystemShape
 * Author:          Aric.W
 * Created:         2013/9/22 17:57:08
 * Version:         A001
 * Compiler:        Visual Studio 2010
 * Description:     系统图元基类
 * 
 * History:
 * <Author>         <Time>              <Version>   <Desc>
 * Aric.W           2013/9/22 17:57:08  A001        create
/************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace Shape
{
    class SystemShape : ShapeBase, ITransformation
    {
        /// <summary>
        /// 旋转角度
        /// </summary>
        protected float ratation;
        public float Rotation
        {
            get
            {
                return ratation;
            }
            set
            {
                ratation = value;
            }
        }

        /// <summary>
        /// 倾斜度，数值为tag（倾斜角度）
        /// </summary>
        protected float sheering;
        public float Shearing
        {
            get
            {
                return sheering;
            }
            set
            {
                sheering = value;
            }
        }

        /// <summary>
        /// 旋转中心相对位置
        /// </summary>
        protected GCPointF relativeCenter;
        public GCPointF RelativeCenter
        {
            get
            {
                return relativeCenter;
            }
            set
            {
                relativeCenter = value;
            }
        }

        /// <summary>
        /// 是否允许显示提示文本
        /// </summary>
        protected bool enableTooltip;
        public bool EnableTooltip
        {
            get { return enableTooltip; }
            set { enableTooltip = value; }
        }

        /// <summary>
        /// 提示文本
        /// </summary>
        private string tooltipText;
        protected string TooltipText
        {
            get { return tooltipText; }
            set { tooltipText = value; }
        }
    }
}
